<!DOCTYPE html>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.flexbox')">

<div class="flexbox" style="display:-webkit-flex; -webkit-flex-direction: column; background-color: salmon; height: 300px; width: 400px;">
    <div style="margin: 10%; background-color: orange; height: 5px; -webkit-flex: 1" data-expected-width=320 data-expected-height=135></div>
    <div style="margin: 10%; background-color: orange; height: 5px;" data-expected-width=320 data-expected-height=5></div>
</div>

<div class="flexbox" style="display:-webkit-flex; background-color: salmon; height: 300px; width: 400px;">
    <div style="margin: 10%; background-color: orange; height: 5px; -webkit-flex: 1 5px" data-expected-width=235 data-expected-height=5></div>
    <div style="margin: 10%; background-color: orange; height: 5px; width: 5px" data-expected-width=5 data-expected-height=5></div>
</div>

<div class="flexbox" style="display:-webkit-flex; background-color: salmon; height: 300px; width: 400px; padding: 100px;">
    <div style="margin: 10%; background-color: orange; height: 5px; -webkit-flex: 1 5px" data-expected-width=235 data-expected-height=5></div>
    <div style="margin: 10%; background-color: orange; height: 5px; width: 5px" data-expected-width=5 data-expected-height=5></div>
</div>

</body>
